<!DOCTYPE html>
<html>
<#include "../head.html">
<body>
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="操作记录">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                        
							<div class="toolbor-module export">
							           <input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
							<#if param?exists>
                                <#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
                                <#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
                                <#if param.get("succtime1")?exists><#assign succtime1=param.get("succtime1")></#if>
                                <#if param.get("succtime2")?exists><#assign succtime2=param.get("succtime2")></#if>
                                <#if param.get("username")?exists><#assign username=param.get("username")></#if>
                                <#if param.get("status")?exists><#assign status=param.get("status")></#if>
                                <#if param.get("trade_no")?exists><#assign trade_no=param.get("trade_no")></#if>
                            </#if>
							</div>
                            <div class="toolbor-module search">
                                <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名"  class="search-value">
                                <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
			                <table class="data-list" >
								<tr  class="header">
									<td width="50px">ID</td>
									<td width="80px">操作用户</td>
									<td width="100px">类型</td>
									<td width="100px">用户名称</td>
									<td width="150px">记录时间</td>
									<td width="100px">操作ip</td>
						            <td width="500px">操作结果</td>					
								</tr>
								<#list list as item>
								<tr class="s" line-height="70px">
									<td>${item.id?c}</td>
									<td><a href="${webroot}/user/show.html?user_id=${item.user_id?c}">${item.verify_username}</a></td>
									<td>${(item.typename)!"错误类型!"}</td>
									<td>${item.username!}</td>
									<td>${dateformat(item.addtime!)}</td>
									<td>${item.addip}</td>
						            <td>${item.operationResult!}</td>
								</tr>
								</#list>
							</table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="/admin/cash/operationLog.html" map=param style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->

                            <script>
                            	//  v1.6.6.1 RDPROJECT-205 zza 2013-09-26 start
                                var url = 'operationLog.html?search=true';
                                var xlsurl='operationLog.html?type=export'
                                //  v1.6.6.1 RDPROJECT-205 zza 2013-09-26 end

                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    if (sou!=""){
                                        location.href=url+sou;
                                    }
                                }
                                function exportxls(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    if (sou!=""){
                                        location.href=xlsurl+sou;
                                    }else{
                                        location.href=xlsurl;
                                    }
                                }
                            </script>
                        </div>
        </td>
    </tr>
    <tr>
        <!--尾部--{-->
        <td colspan="3" class="mc-b"><#include "../foot.html"></td>
        <!--尾部--}-->
    </tr>
</table>

</body>
</html>
<#include "../jsPage.html">